#!/bin/bash
#虚拟机上传代码到阿里云
project=/data/code/lowcode/lowcode-edtior-demo

cd $project
git pull

# npm install
npm run build

# 把代码上传到阿里云指定目录
cd /data/services/ossutil/
./ossutil64 rm -rf oss://linkkap-product/lowcode/webapps/lowcode-edtior-demo/dist
./ossutil64 cp -rf /data/code/lowcode/lowcode-edtior-demo/dist oss://linkkap-product/lowcode/webapps/lowcode-edtior-demo/dist